package com.jds.test.jdk;

import java.io.Serializable;

/**
 * Created by sunyuming on 18/8/1.
 */
public class BaseBean implements Serializable {
    private static int seria = 0;
    private static String base = "abcdefghigklmn";

    public BaseBean() {
        setNo(++seria);
        setRandom(base.substring(seria % base.length()));
    }
    private Integer no;

    private String random;

    @Override
    public String toString() {
        return String.valueOf(no) + ":" + random;
    }

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public String getRandom() {
        return random;
    }

    public void setRandom(String random) {
        this.random = random;
    }
}
